import { useState } from "react";
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import "./App.css";
import Home from "./pages/home";

function App() {
  const [count, setCount] = useState(0);

  return (
    <>
      <div>
        <h1>react 子应用</h1>
        <Home></Home>
      </div>
      <h1>Vite + React</h1>
      <div className="card">
        <button
          onClick={() => {
            // console.log(window.parent.a);
            // console.log(window.$wujie.props.name);
            window.$wujie.bus.$emit("reat", { name: "xm", age: 18 });
          }}
        >
          获取基座的参数
        </button>
        <p>
          Edit <code>src/App.tsx</code> and save to test HMR
        </p>
      </div>
      <p className="read-the-docs">
        Click on the Vite and React logos to learn more
      </p>
    </>
  );
}

export default App;
